from django.conf.urls import patterns, url

from myapp import views

urlpatterns = patterns('',
    url(r'^$', views.index, name='index'),
    url(r'^postadd/$', views.PostAddView, name='postadd'),
    url(r'^useradd/$', views.UserAdd, name='useradd'),
    url(r'^useradd/(?P<id>\d+)/$', views.UserAdd, name='user_edit'),
    url(r'^all_adds/$', views.AllAdds, name='user_adds'),
    url(r'^view_add/(?P<add_id>\d+)/$', views.ViewAdd, name='user_adds'),
)
